/* uni-app页面样式 */
page {
	background-color: #f8f8f8;
}

/* 页面容器 */
.page {
	/* 柔和的浅色渐变背景 - 从上到下由浅蓝到浅绿 */
	background: linear-gradient(0, #fff, #f0f9f0);
	min-height: 100vh;
	padding-bottom: 40rpx;

	.banner-carousel {
		position: relative;
		height: 600rpx;
		width: 100%;
		z-index: 1;
		overflow: hidden;

		/* 设置较低的z-index */
		.banner-swiper {
			height: 100%;
			width: 100%;

			.banner-image {
				width: 100%;
				height: 100%;
			}
		}

		.navbar-overlay {
			position: absolute;
			bottom: -20rpx;
			left: 0;
			right: 0;
			height: 60%;
			background: linear-gradient(0, #fff 0%, #fff 20%, rgba(255, 255, 255, 0) 100%);
		}
		.hot-overlay {
			position: absolute;
			top: 100rpx;
			left: 30rpx;
			right: 30rpx;

			.title {
				font-size: 46rpx;
				font-weight: bolder;
				color: #fff;
				margin-bottom: 30rpx;
			}

			.title-sub {
				color: #fff;
				margin-bottom: 30rpx;
			}

			.show-button {
				background-color: rgba(255, 93, 128, 0.7);
				color: #fff;
				border-radius: 60rpx;
				padding: 14rpx 24rpx;
				align-self: flex-start;
				.text,
				.iconfont {
					font-size: 24rpx;
				}
			}
		}
	}

	/* 滚动视图样式 */
	.content-scroll {
		z-index: 15;
		position: relative;
		/* 确保滚动内容区域不会被渐变背景干扰 */
		background-color: transparent;
		width: 100%;
		height: 100%;

		/* 顶部大图轮播背景 */

		/* 搜索区域 */
		.search-section {
			padding: 50rpx;
			position: relative;
			/* 使用半透明背景以融入渐变效果 */
			background-color: #fff;
			margin-top: 400rpx;
			border-radius: 40rpx;
			margin-left: 40rpx;
			margin-right: 40rpx;
			z-index: 20;
			box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.05);

			.button {
				border-radius: 100rpx;
				color: #ffffff;
				background-color: #fe798e;
				bordercolor: #fe798e;
			}

			.is-hover {
				color: rgba(255, 255, 255, 0.6);
				background-color: #fea0b5;
				bordercolor: #fea0b5;
			}

			.search-bar {
				display: flex;
				align-items: center;
				border-radius: 30rpx;
				margin-bottom: 40rpx;

				.search-city {
					border-right: 1px #b9b9b9 solid;
					margin-right: 20rpx;
					padding-right: 20rpx;
					.text {
						font-size: 34rpx;
						font-weight: bold;
					}
					.search-city-clear {
						margin-left: 10rpx;
						font-size: 24rpx;
						color: #666;
					}
				}

				.search-icon {
					margin-right: 15rpx;
				}

				.search-input {
					flex: 1;
					font-size: 28rpx;
					margin-left: 10rpx;
					color: #333;
					background-color: transparent;
				}
			}

			/* 日期选择区域 */
			.date-selector {
				margin-bottom: 30rpx;

				.search-filter {
					color: #666;
					font-size: 28rpx;
				}

				.date-item {
					padding: 10rpx 0;
					align-items: end;
					letter-spacing: 4rpx;
					font-size: 34rpx;
					color: #333;
					font-weight: bolder;
				}

				.date-separator {
					margin: 0 20rpx;
					border-bottom: 1px #e76d69 dashed;
					font-size: 26rpx;
					color: #e76d69;
					padding-bottom: 6rpx;
				}
			}
		}

		/* 活动区域 */
		.activity-section {
			margin-top: 40rpx;
			margin-left: 40rpx;
			margin-right: 40rpx;

			.section-header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 25rpx;

				.section-title {
					font-size: 32rpx;
					font-weight: 600;
					color: #333;
				}

				.section-more {
					font-size: 26rpx;
					color: #999;
				}
			}

			.activity-swiper {
				height: 220rpx;

				.activity-card {
					position: relative;
					height: 100%;
					border-radius: 20rpx;
					overflow: hidden;

					.activity-image {
						width: 100%;
						height: 100%;
					}

					.activity-info {
						position: absolute;
						bottom: 0;
						left: 0;
						right: 0;
						background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
						padding: 20rpx;
						color: #fff;

						.activity-title {
							font-size: 28rpx;
							font-weight: 600;
							margin-bottom: 5rpx;
							display: block;
						}

						.activity-desc {
							font-size: 22rpx;
							opacity: 0.9;
							margin-bottom: 10rpx;
							display: block;
						}

						.activity-price {
							font-size: 24rpx;

							.price-symbol {
								font-size: 22rpx;
							}

							.price-value {
								font-size: 36rpx;
								font-weight: 600;
								color: #ffd700;
							}

							.price-unit {
								font-size: 20rpx;
								opacity: 0.8;
							}
						}
					}
				}
			}
		}

		/* 民宿列表区域 */
		.hotel-section {
			margin: 40rpx 20rpx;
			box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
			border-radius: 30rpx;
			padding: 20rpx;
			padding-top: 0;
			position: relative;
			background: linear-gradient(rgba(255, 73, 143, 0.1) 0%, #fff 100rpx, #fff 100%);

			.filter-tags {
				margin: 0 30rpx;
				display: flex;
				overflow-x: auto;
				padding-bottom: 10rpx;

				.filter-tag {
					padding: 12rpx 28rpx;
					margin-right: 20rpx;
					background-color: #f8f8f8;
					border-radius: 25rpx;
					font-size: 26rpx;
					color: #666;
					white-space: nowrap;
					transition: all 0.2s ease;
					box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);

					&.active {
						background-color: #ff6b81;
						color: #fff;
					}
				}
			}
			.tip {
				font-weight: bolder;
				position: absolute;
				right: 10rpx;
				top: 10rpx;
				width: 500rpx;
				opacity: 0.1;
				height: 80rpx;
			}
			.section-header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 30rpx;
				margin-top: 20rpx;
				.section-title {
					font-size: 36rpx;
					font-weight: 600;
					color: #333;
					font-weight: bolder;
				}

				.sort-options {
					display: flex;

					.sort-option {
						margin-left: 30rpx;
						font-size: 26rpx;
						color: #666;

						&.active {
							color: #ff6b81;
							font-weight: 500;
						}
					}
				}
			}

			/* 瀑布流布局样式 */
			.waterfall-container {
				display: flex;
				justify-content: space-between;
				margin-top: 20rpx;

				.waterfall-column {
					width: 48%;
					display: flex;
					flex-direction: column;
					gap: 20rpx;
				}
			}

			/* 加载更多样式 */
			.load-more-container {
				padding: 40rpx 0;
				display: flex;
				justify-content: center;
				align-items: center;

				.loading-indicator {
					display: flex;
					align-items: center;
					justify-content: center;

					.loading-text {
						margin-left: 15rpx;
						font-size: 28rpx;
						color: #999;
					}
				}

				.no-more {
					font-size: 28rpx;
					color: #999;
					text-align: center;
				}
			}
		}
	}

	/* 位置选择器弹窗样式 */
	.location-picker-overlay {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 1000;
		display: flex;
		align-items: center;
		justify-content: center;

		.location-picker-content {
			width: 80%;
			max-width: 500rpx;
			background-color: #fff;
			border-radius: 30rpx;
			overflow: hidden;
			box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.15);

			.location-picker-header {
				display: flex;
				justify-content: space-between;
				align-items: center;
				padding: 30rpx;
				border-bottom: 1rpx solid #eee;

				.location-picker-title {
					font-size: 32rpx;
					font-weight: 600;
					color: #333;
				}

				.location-picker-close {
					padding: 10rpx;
				}
			}

			.location-picker-body {
				max-height: 500rpx;
				overflow-y: auto;

				.location-item {
					padding: 30rpx;
					font-size: 30rpx;
					color: #333;
					border-bottom: 1rpx solid #f5f5f5;
					text-align: center;
					transition: background-color 0.2s ease;

					&:last-child {
						border-bottom: none;
					}

					&:active {
						background-color: #f8f8f8;
					}
				}
			}
		}
	}
}
